﻿@model B4Deal.Models.Deal
@{
    ViewBag.Title = "Đăng deal";
    
}
<link href="@Url.Content("~/Content/Layout/help.css")" rel="stylesheet" type="text/css" />
<div align="center" id="popupMyDeal" style="z-index: 9999; width: 100%; top: 0px;
    bottom: 0px; position: fixed; background-color: rgba(0,0,0,0.4) !important;">
    <form id="CDForm">
    <!--div class="body-left"-->
    <div class="detail-deal bussiness" style="width: 700px;">
        <div class="payment">
            <div class="box_payment">
                <h4>
                    Điền thông tin deal, chúng tôi sẽ liên hệ với bạn!</h4>
                <p id="errorCreate" class="validation-summary-errors" style="margin-top: 20px;">
                </p>
                <ul class="box_payment_content" style="overflow: hidden; padding-top: 12px;">
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" name="txtName" id="txtName" value = "@Model.TenKM"/></div>
                        <span style="float: left">Tên khuyến mãi:<i>*</i></span> </li>
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" name="txtGiaCu" id="txtGiaCu" value = "@Model.DonGiaCu"></div>
                        <span style="float: left">Đơn giá cũ:</span> </li>
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" name="txtGiaMoi" id="txtGiaMoi" value = "@Model.DonGiaMoi"></div>
                        <span style="float: left">Đơn giá mới:<i>*</i></span> </li>
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" id="txtNgayBD" name="txtNgayBD" value = "@Model.BatDauKM.ToShortDateString()"></div>
                        <span style="float: left">Ngày bắt đầu:<i>*</i></span> </li>
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" name="txtNgayKT" id="txtNgayKT" value = "@Model.KetThucKM.ToShortDateString()"></div>
                        <span style="float: left">Ngày kết thúc:<i>*</i></span> </li>
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" id="txtMoTa" name="txtMoTa" value = "@Model.MoTa"></div>
                        <span style="float: left">Mô tả:<i>*</i></span> </li>
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" name="txtNoiBat" id="txtNoiBat" value = "@Model.DacDiemNoiBat"></div>
                        <span style="float: left">Đặc điểm nổi bật:<i>*</i></span> </li>
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" name="txtDieuKien" id="txtDieuKien" value = "@Model.DkSuDung"></div>
                        <span style="float: left">Điều kiện sử dụng:<i>*</i></span> </li>
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" name="txtChiTiet" id="txtChiTiet" value = "@Model.GioiThieuChiTiet"></div>
                        <span style="float: left">Giới thiệu chi tiết:<i>*</i></span> </li>
                    <li class="textbox">
                        <div class="bg_txtb ">
                            <input type="text" name="txtHinhAnh" id="txtHinhAnh" value = "@Model.HinhAnh"></div>
                        <span style="float: left">Hình ảnh:<i>*</i></span> </li>
                    <li class="textbox" style="float: right; margin-right: 20px">
                    <div style="display: inline-block">
                    <a class="view-button" name="" id="btnSendDNDK" href="javascript:void(0)" onclick = "AddDeal()">
                    </a><a class="view-button" style="background: url('../../Content/Layout/Images/btn_cancel_vn.png') no-repeat !important" name="" id="btnCancelDNDK" href="javascript:void(0)" onclick = "$('#panelViewDetail').hide('fast');">
                    </a></div></li>
                </ul>
            </div>
        </div>
        <!--/div-->
    </form>
</div>
